package com.example.automanagement.mapper;

import com.example.automanagement.entity.AutoGeneralApproval;
import com.example.automanagement.entity.RepairGeneralApproval;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface RepairApprovalMapper {
    @Insert("insert into repair_general_approval(order_id, order_approver, approval_result, approval_describe, user_id, submit_time)" +
            "values( #{orderId},#{orderApprover},#{approvalResult},#{approvalDescribe},#{userId},#{submitTime}) ")
    void addRepairApproval(RepairGeneralApproval approval);
    @Select("select * from repair_general_approval where order_id = #{orderId}")
    RepairGeneralApproval getRepairGeneralApproval(@Param("orderId") String orderId);
}
